import Vue from 'vue';
import VueRouter from 'vue-router';

import home from '@/router/home/index';
import activity from '@/router/activity/index';

Vue.use(VueRouter);

const routes = [
  {
    // 先placeholer 一下 删了会报错
    path: '/app/abcd',
    name: 'abcd',
    component: () => import('@/layout/activity/index'),
  },
  ...home,
  ...activity,
];

console.log(routes);
const router = new VueRouter({
  mode: 'hash',
  base: `${process.env.BASE_URL}`,
  routes,
});

export default router;
